package cn.iocoder.yudao.module.crm.controller.admin.tasktype.vo.tasktypecontent;

import cn.iocoder.yudao.module.crm.controller.admin.tasktype.vo.tasktypeassignee.TaskTypeAssigneeDetail;
import cn.iocoder.yudao.module.crm.dal.dataobject.tasktype.TaskTypeAssigneeDO;
import cn.iocoder.yudao.module.crm.dal.dataobject.tasktype.TaskTypeContentDO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

// 表示任务单类型内容联系详情
@Data
public class TaskTypeContentDetail {
    @Schema(description = "id", example = "15833")
    private Long id;

    @Schema(description = "名称", example = "赵六")
    private String name;

    @Schema(description = "输入内容方式（逗号分隔，1为富文本，2为附件）")
    private String inputMethod;

    public static TaskTypeContentDetail toDetail(TaskTypeContentDO doObj) {
        if (doObj == null) {
            return null;
        }

        TaskTypeContentDetail detail = new TaskTypeContentDetail();
        detail.setId(doObj.getId());
        detail.setName(doObj.getName());
        detail.setInputMethod(doObj.getInputMethod());

        return detail;
    }
}
